Skip to content

Conversation

@andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Dec 18, 2024

Ticket: CLOUDP-285950

Description:

This PR adds a new command to download a flex cluster snapshot.

./bin/atlas backup snapshots download --help                                                                                     
You can download a snapshot for an Atlas Flex cluster.
To use this command, you must authenticate with a user account or an API key with the Project Owner role.
Atlas supports this command only for Flex clusters.

Usage:
  atlas backups snapshots download <snapshotId> [flags]

Flags:
      --clusterName string   Name of the cluster. To learn more, see https://dochub.mongodb.org/core/create-cluster-api.
  -h, --help                 help for download
      --out string           Output file name. This value defaults to the Snapshot id.
      --projectId string     Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.

Global Flags:
  -P, --profile string   Name of the profile to use from your configuration file. To learn about profiles for the Atlas CLI, see https://dochub.mongodb.org/core/atlas-cli-save-connection-settings.
./bin/atlas backup snapshots download 675acf673a6b85483b198fd9 --clusterName ClusterFlex --out ~/Downloads/test.tgz -P prod   

Snapshot '/Users/andrea.angiolillo/Downloads/test.tgz' downloaded.
./bin/atlas backup snapshots download 675acf673a6b85483b198fd9 --clusterName ClusterFlex  -P prod                                      

Snapshot '675acf673a6b85483b198fd9.tgz' downloaded.

@apix-bot
Copy link
Contributor

apix-bot bot commented Dec 19, 2024

Coverage Report 📈

Branch Commit Coverage
CLOUDP-287238_flex_cluster_feature_branch 64f15eb 38.7%
CLOUDP-285950 187f2b2 38.8%
Difference .1%

@andreaangiolillo andreaangiolillo marked this pull request as ready for review December 19, 2024 11:48
@andreaangiolillo andreaangiolillo requested review from a team as code owners December 19, 2024 11:48
@andreaangiolillo andreaangiolillo merged commit baeee57 into CLOUDP-287238_flex_cluster_feature_branch Dec 19, 2024
18 checks passed
@andreaangiolillo andreaangiolillo deleted the CLOUDP-285950 branch December 19, 2024 11:48
@github-actions github-actions bot added the need-doc-review Improvements or additions to documentation, will be reviewed by the docs team label Dec 19, 2024
@github-actions
Copy link
Contributor

APIx Bot :bowtie:: a message has been sent to Docs Slack channel 🚀.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

need-doc-review Improvements or additions to documentation, will be reviewed by the docs team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants